package cn.iocoder.yudao.module.book.controller.app.readBook.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 绘本页新增/修改 Request VO")
@Data
public class AppbookImagesSaveReqVO {

    @Schema(description = "绘本页id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23768")
    private Integer imageId;

    @Schema(description = "绘本id", requiredMode = Schema.RequiredMode.REQUIRED, example = "8527")
    @NotNull(message = "绘本id不能为空")
    private Integer bookId;

    @Schema(description = "图片", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "图片不能为空")
    private String imageUrl;

    @Schema(description = "顺序")
    private Integer imageOrder;

    @Schema(description = "绘本音频", example = "https://www.iocoder.cn")
    private String audioUrl;

}